package com.sundablog.controller;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sundablog.pojo.AdminUser;
import com.sundablog.service.TestService;

/**
 * 测试控制器类
 * @ClassName:  TestController   
 * @Description:TODO(这里用一句话描述这个类的作用)   
 * @author: 哒哒 
 * @date:   2018年3月21日 下午2:51:28   
 *     
 * @Copyright: 2018 www.sundablog.com Inc. All rights reserved.
 */
@Controller
public class TestController {

	@Autowired
	public TestService testService;
	
	
	@RequestMapping("/test")
	@ResponseBody
	public List<AdminUser> text(){
		return testService.selectAdmin();
	}
	
	
}
